package ltd.dujiabao.dex.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

/**
 * @author DuJiabao
 * @date 2024/3/18 20:12
 */
@Data
@ConfigurationProperties("ltd.dujiabao.delay-executor")
public class DelayExecutorProperties {

    private boolean enable = true;
    private JdkProperties jdk;
    private RabbitProperties rabbitmq;
    private QuartzProperties quartz;

    @Data
    public static class JdkProperties {
        private boolean enable = false;
        private int coreThreadSize = 3;
        private String threadName = "delay-executor-";
    }

    @Data
    public static class RabbitProperties {
        private boolean enable = false;
    }

    @Data
    public static class QuartzProperties {
        private boolean enable = false;
    }
}
